let Koa = require("koa");
let Router = require("koa-router");
let axios = require("axios")
let fs = require("fs");
let views = require("koa-views");
const { append } = require("koa/lib/response");
const context = require("koa/lib/context");
let app = new Koa();
let router = new Router();
app.use(views(__dirname + "/views"));
router.get("",async ctx => {
     await ctx.render("/index.html")
})
router.get("/go3000", async ctx => {
     let { data } = await axios.get("http://192.168.58.113:4000/")
     ctx.body = data;
})
app.use(router.routes());
app.listen(3000)